<?php
require("includes/basic.php");

        $sql = "SELECT * FROM client_logo";
 
        // the result of the query
        $result = mysql_query($sql) or die("Invalid query: " . mysql_error());
		$row=mysql_fetch_array($result);
		$data=$row['name'];
        // Header for the image
        header("Content-type:".$row['type']);
        echo mysql_result($row, 0,$data);
 
     
?>
